<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text指令</title>
    <script src="../../js/vue.js"></script>
</head> 
<body>
    <div id="root">
        <h1 >欢迎来到 {{name}} 学习</h1>
        <h1 v-text="name">欢迎来到 {{name}} 学习</h1>
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false;
        new Vue({
            el: '#root',
            data: {
                'name': '尚硅谷'
            }
        })
    </script>
</body>
</html>